import React, { Component } from 'react';

class App extends Component {
  state = {
    size: 30,
    num: 900
  }
  render() {
    const { size, num } = this.state
    return (
      <div>
        <div style={{ fontSize: size, fontWeight: num }}>动态style</div>
      </div>
    );
  }
}

export default App;